import axios from 'axios'

// 获取验证码
export const getCode = async () => {
  let result = {}
  try {
    result = await axios.get('/getSvgCaptcha')
    if (result.status === 200) {
      return result.data
    }
  } catch (e) {}
  return result
}

export const forget = async (params = {}) => {
  let result = {}
  try {
    result = await axios.post('/forget', params)
    if (result.status === 200) {
      return result.data
    }
  } catch (e) {}
  return result
}
